home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Common / guidinit.cpp < prev    next >
Text File  |  1997-01-03  |  2KB  |  43 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * guidInit.h -    Guidinit code                                                  *
  4. *                                                                             *
  5. *               OLE Version 2.0                                               *
  6. *                                                                             *
  7. *               Copyright (c) 1992-1996, Microsoft Corp. All rights reserved. *
  8. *                                                                              *
  9. *    By default the #define for  the DEFINE_GUID macro in compobj.h on the Mac *
  10. *    defines a macro that turns this:                                              *
  11.     DEFINE_OLEGUID(IID_IEnumUnknown, 0x00000100, 0, 0);
  12.     
  13.     into the following declaration
  14.     
  15.     extern "C" const GUID IID_IEnumUnknown;
  16.     
  17.     to actually define the GUID (create the data) you need to #define INITGUID
  18.     before you include compobj.h which will cause initguid.h to be included 
  19.     which will then redefine the DEFINE_OLEGUID macro to generate
  20.     
  21.     extern "C" const GUID IID_IEnumUnknown = { 0x00000100, 0, 0, 0xC0, 0, 0, 0, 0, 0, 0, 0x46 };
  22.     
  23. *                                                                             *
  24. \*****************************************************************************/
  25.  
  26. #ifndef FAR
  27.     #define FAR
  28. #endif
  29.  
  30. #define INITGUID
  31. #include <compobj.h>
  32. #include <coguid.h>
  33. #include <oleguid.h>
  34. #include <activexguid.h>
  35. #include <olectlid.h>
  36. #include <ole2.h>
  37. #include <dispatch.h>
  38. #include <ServiceProviderGuid.h>
  39. #include <URLMonGuid.h>
  40. #include <ObjectGuid.h>
  41. #include <DataPathGuid.h>
  42. #include <ISLGuids.h>
  43.